package com.zxw.user.mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zxw.user.domain.dto.UserDTO;
import com.zxw.user.domain.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zxw.user.domain.vo.UserPageVO;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Xuewei.Zhang
 * @since 2022-01-21
 */
public interface UserMapper extends BaseMapper<User> {

    List<UserDTO> getUserPage(Page<UserDTO> userDTOPage,UserPageVO pageVO);

    User  getOneByIdAndCompanyId(@Param("id") Long id, @Param("companyId") Long companyId);

    User getByAccount(@Param("account") String account);

}
